<script setup>
const emit = defineEmits(['update:value'])
const props = defineProps({
  show: {
    type: Boolean,
    default: false
  },
  value: {
    type: String | Number,
    default: ''
  },
  columns: {
    type: Array,
    default: () => ([])
  },
  title: {
    type: String,
    default: ''
  }
})
// const v = computed({
//   get() {
//     return props.modelValue
//   },
//   set() {
//     emit
//   }
// })
const popupConfirm = (v) => {
  emit('update:modelValue')
}
</script>

<template>
  <nut-popup position="bottom" v-model:visible="show">
    <nut-picker
      :value="value"
      :columns="columns"
      :title="title"
      @confirm="popupConfirm"
    >
    </nut-picker>
  </nut-popup>
</template>

<style scoped lang="scss">

</style>
